package com.example.demo.entity;

import java.beans.ConstructorProperties;
import java.io.Serializable;

public class User implements Serializable {
  private static final long serialVersionUID = 8104961490512068314L;
  
  private Integer id;
  
  private String name;
  
  private String password;
  
  public void setId(Integer id) {
    this.id = id;
  }
  
  public void setName(String name) {
    this.name = name;
  }
  
  public void setPassword(String password) {
    this.password = password;
  }
  

  

  @Override
  public String toString() {
    return "User(id=" + getId() + ", name=" + getName() + ", password=" + getPassword() + ")";
  }
  
  public User() {}
  
  @ConstructorProperties({"id", "name", "password"})
  public User(Integer id, String name, String password) {
    this.id = id;
    this.name = name;
    this.password = password;
  }
  
  public Integer getId() {
    return this.id;
  }
  
  public String getName() {
    return this.name;
  }
  
  public String getPassword() {
    return this.password;
  }
}
